#ifndef MCU_RMSG_H_INC
#define MCU_RMSG_H_INC

#include "ndata.h"
#include "rmsg.h"
#include "fifo.h"


#define NMGS_ID(h)		*(DWORD * (*((WORD *)(h)+6)))	


class DdaRmsg : public Tape {
public:
	DdaRmsg(void) : Tape() {}
	DdaRmsg(DWORD initSize) : Tape(initSize) {}
	virtual ~DdaRmsg() {}
	virtual void Merge(Nhead nhead, Ndata* paMsg);
	virtual BOOL ExportToFifo(CxNfifo* sendingFifo);
	virtual BOOL ImportFromFifo(CxNfifo* rcvfifo);
	virtual void GetHead(Nhead nhead);
	virtual void GetMsg(Ndata* paMsg);
	virtual WORD  GetNtype();
};


#endif

